/*
 * @Author: yhx 2045399856@qq.com
 * @Date: 2024-04-02 09:30:45
 * @LastEditTime: 2024-04-02 09:36:44
 * @FilePath: \electron-wallpaper\src\renderer\src\router\index.js
 * @Description:
 *
 */
import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  { path: '/', component: () => import('@/views/home.vue') },
  { path: '/setting', component: () => import('@/views/setting.vue') },
  { path: '/help', component: () => import('@/views/help.vue') }
]

// 3. 创建路由实例并传递 `routes` 配置
// 你可以在这里输入更多的配置，但我们在这里
// 暂时保持简单
const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
